Skip to content

feat: apply affiliate rebate to subscription payments#3371

Merged
Wei-Shaw merged 1 commit into
Wei-Shaw:mainfrom
cugxuan:feat/subscription-affiliate-rebate
Jun 21, 2026
Merged

feat: apply affiliate rebate to subscription payments#3371
Wei-Shaw merged 1 commit into
Wei-Shaw:mainfrom
cugxuan:feat/subscription-affiliate-rebate

Conversation

@cugxuan

@cugxuan cugxuan commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

订阅付款的时候仍然走返利

Summary

  • apply affiliate rebate accrual to paid subscription order fulfillment, using the subscription order amount as the rebate base
  • add a subscription assignment audit marker so fulfillment retries can skip duplicate subscription extension while still running rebate idempotency
  • keep existing balance recharge rebate behavior unchanged and make rebate audit claim SQL work in unit-test SQLite as well as PostgreSQL

Tests

  • go test -tags unit ./internal/service
  • go test ./internal/service -run '^$'
  • git diff --check

@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA. ✅
Posted by the CLA Assistant Lite bot.

@cugxuan

cugxuan commented Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Jun 19, 2026
@cugxuan

cugxuan commented Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

issue #3370

@Wei-Shaw Wei-Shaw merged commit f079742 into Wei-Shaw:main Jun 21, 2026
3 of 4 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants